package com.atguigu.gulimall.order.service;

import com.atguigu.gulimall.order.vo.OrderConfirmVo;
import com.atguigu.gulimall.order.vo.OrderSubmitVo;
import com.atguigu.gulimall.order.vo.SubmitOrderRespVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.order.entity.OrderEntity;

import java.util.Map;

/**
 * 订单
 *
 * @author gaozz
 * @email 1183823016@qq.com
 * @date 2022-11-03 23:04:26
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取订单确认页需要展示的数据
     * @return
     */
    OrderConfirmVo confirmOrder();

    /**
     * 下单
     * @param vo
     * @return
     */
    SubmitOrderRespVo submitOrder(OrderSubmitVo vo);
}

